﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace DingHeng.TransportationManagement.Interfaces
{
    [ServiceContract]
    public interface IBusiness:IHello
    {
        #region Demo

        /// <summary>
        /// 获取xml内容
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [OperationContract]
        string GetSqlXml(int id);


        /// <summary>
        /// 插入记录
        /// </summary>
        /// <param name="xml"></param>
        [OperationContract]
        bool InsertSqlXml(string xml);

        /// <summary>
        /// 更新记录
        /// </summary>
        /// <param name="id"></param>
        /// <param name="newXml"></param>
        [OperationContract]
        void UpdateSqlXml(int id, string newXml);

        /// <summary>
        /// 删除记录
        /// </summary>
        /// <param name="id"></param>
        [OperationContract]
        void DeleteSqlXml(int id);

        #endregion
    }
}
